<template>
	<view class="yyMod">
		<view class="zxrInfo"> 
			<view class="detInfo" @tap="showPopup" v-if="isHasDataFlag">
				<view class="infoLeft">
					<text class="usename">{{currZxr}}</text>
					<text>{{currMobile}}</text>
				</view>
				<view class="iconfont icon-sanjiao"></view>
			</view>
			<view class="noZxrInfo" v-else-if="isHasDataFlag == false">
				<image class="defImg" src="../../../../static/images/defHead.png"></image>
				<view>暂无咨询人,请添加</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			isHasDataFlag:Boolean,
			currZxr:String,
			currMobile:String
		},
		methods:{
			showPopup(){
				this.$emit('showPopup')
			}
		}
	}
</script>

<style lang='scss' scoped>
	.detInfo{
		height: 90rpx;
		line-height: 90rpx;
		background: $pss-bg-gray;
		font-size: $font-size28;
		color: $pss-text-color3;
		padding: 0 20rpx;
		border-radius: 10rpx;
		display: flex;
		justify-content: space-between;
		margin-bottom: 30rpx;
		.usename{
			margin-right: 10rpx;
		}
		.icon-sanjiao{
			color: $pss-text-colora;
			font-size: 40rpx;
			border-radius: 10rpx;
		}
	}
	.noZxrInfo{
		height: 200rpx;
		padding: 20rpx 0;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: $font-size26; 
		color: $pss-text-colora;
		.defImg{
			width: 80rpx;
			height: 80rpx;
			margin-right: 15rpx;
		}
	}
</style>